package com.baosight.risk.api.xtzy;

import java.util.List;

import com.baosight.risk.base.service.BaseService;
import com.baosight.risk.service.system.entity.SysMenu;
import com.baosight.risk.service.system.entity.SysRole;
import com.baosight.risk.service.xtzy.entity.XtsqMenuAutho;
import com.baosight.risk.service.xtzy.entity.XtzyUser;
import com.baosight.risk.service.xtzy.vo.XtzyCompanyVO;

/**
 * 类 名: IXtsqMenuAuthoService
 * 作 者: 黎秋荣
 * 创 建：2019年05月21日
 * 版 本：v2.2.0
 * 历 史: (版本) 作者 时间 注释
 */
public interface IXtsqMenuAuthoService extends BaseService<XtsqMenuAutho> {

    List<SysRole> getRoleByCompId(String compId, String roleName, String flag);

    Integer deleteRoleAuthById(String id) throws Exception;

    Integer addRoleByCompCode(XtzyCompanyVO companyVO) throws Exception;

    List<SysRole> queryRoleByCompId(String compId, String topCompId);

    List<SysMenu> getMenuByCompAndUser(String compId, XtzyUser user);

    List<SysRole> getRole();

    List<SysMenu> getMenuByRoleId(String roleId);

    List<SysMenu> getMenuByRoleIdAndCompId(String compId, String roleId);

    Integer inserCompRole(XtzyCompanyVO companyVO);

    Integer inserMenuByRole(XtzyCompanyVO companyVO);
}
